
#include "Base.h"
#include "GameInfo.h"
#include "Project/ProjectManager.h"

namespace CasaEngine
{

SINGLETON_IMPL(GameInfo)

GameInfo::GameInfo() :
	m_pCamera(NULL),
	m_pWorld(NULL)
{
}


GameInfo::~GameInfo()
{
}

ProjectManager& GameInfo::GetProjectManager() 
{ 
	return m_ProjectManager; 
}

/*
 *	
 */
World* GameInfo::GetWorld() const 
{ 
	return m_pWorld; 
}

/*
 *	
 */
void GameInfo::SetWorld(World* val)
{ 
	m_pWorld = val; 
}

/**
 * 
 */
CameraComponent *GameInfo::GetActiveCamera() const 
{
	CASAENGINE_ASSERT(m_pCamera != NULL);
	return m_pCamera; 
}

/**
 * 
 */
void GameInfo::SetActiveCamera(CameraComponent * val) 
{ 
	m_pCamera = val; 
}


} // namespace CasaEngine
